package org.jeecg.modules.power.order.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 租借充电宝订单
 * @Author: jeecg-boot
 * @Date:   2024-07-22
 * @Version: V1.0
 */
@Data
@TableName("yl_power_bank_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="yl_power_bank_order对象", description="租借充电宝订单")
public class YlPowerBankOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id 主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id 主键")
    private String id;
	/**用户id*/
	@Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private String userId;
	/**用户(手机号)*/
	@Excel(name = "用户(手机号)", width = 15)
    @ApiModelProperty(value = "用户(手机号)")
    private String tel;
	/**订单编号*/
	@Excel(name = "订单编号", width = 15)
    @ApiModelProperty(value = "订单编号")
    private String orderNumber;
	/**支付单号*/
	@Excel(name = "支付单号", width = 15)
    @ApiModelProperty(value = "支付单号")
    private String payNumber;
	/**充电宝SN*/
	@Excel(name = "充电宝SN", width = 15)
    @ApiModelProperty(value = "充电宝SN")
    private String powerBank;
	/**押金金额*/
	@Excel(name = "押金金额", width = 15)
    @ApiModelProperty(value = "押金金额")
    private BigDecimal payPrice;
	/**订单金额*/
	@Excel(name = "订单金额", width = 15)
    @ApiModelProperty(value = "订单金额")
    private BigDecimal orderPrice;
	/**租借方式 1 免押金 2 交押金 */
	@Excel(name = "租借方式 1 免押金 2 交押金 ", width = 15)
    @ApiModelProperty(value = "租借方式 1 免押金 2 交押金 ")
    private Integer leaseMode;
	/**押金出处  0 不交押金     1 交到三方 2 交到系统 */
	@Excel(name = "押金出处  0 不交押金     1 交到三方 2 交到系统 ", width = 15)
    @ApiModelProperty(value = "押金出处  0 不交押金     1 交到三方 2 交到系统 ")
    private Integer depositType;
	/**租借时间*/
	@Excel(name = "租借时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "租借时间")
    private Date leaseTime;
	/**租借地点（店铺ID）*/
	@Excel(name = "租借地点（店铺ID）", width = 15)
    @ApiModelProperty(value = "租借地点（店铺ID）")
    private String leaseShopId;
	/**租借地点（店铺名称）*/
	@Excel(name = "租借地点（店铺名称）", width = 15)
    @ApiModelProperty(value = "租借地点（店铺名称）")
    private String leasePlace;
	/**租借时长*/
	@Excel(name = "租借时长", width = 15)
    @ApiModelProperty(value = "租借时长")
    private String leaseDuration;
	/**是否归还 0否  1是*/
	@Excel(name = "是否归还 0否  1是", width = 15)
    @ApiModelProperty(value = "是否归还 0否  1是")
    private Integer isReturn;
	/**归还时间*/
	@Excel(name = "归还时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "归还时间")
    private Date returnTime;
	/**归还地点（店铺名称）*/
	@Excel(name = "归还地点（店铺名称）", width = 15)
    @ApiModelProperty(value = "归还地点（店铺名称）")
    private String returnPlace;
	/**租借地点（归还店铺ID）*/
	@Excel(name = "租借地点（归还店铺ID）", width = 15)
    @ApiModelProperty(value = "租借地点（归还店铺ID）")
    private String returnShopId;
	/**门店BD*/
	@Excel(name = "门店BD", width = 15)
    @ApiModelProperty(value = "门店BD")
    private String shopBd;
	/**BD_id(业务员)*/
	@Excel(name = "BD_id(业务员)", width = 15)
    @ApiModelProperty(value = "BD_id(业务员)")
    private String bdId;
	/**借出MAC*/
	@Excel(name = "借出MAC", width = 15)
    @ApiModelProperty(value = "借出MAC")
    private String mac;
	/**订单状态(0租借中 1 已完成)*/
	@Excel(name = "订单状态(0租借中 1 已完成)", width = 15)
    @ApiModelProperty(value = "订单状态(0租借中 1 已完成)")
    private Integer orderStatus;
	/**用户来源 0微信 1支付宝*/
	@Excel(name = "用户来源 0微信 1支付宝", width = 15)
    @ApiModelProperty(value = "用户来源 0微信 1支付宝")
    private Integer source;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**小组id*/
    private String groupId;

    /**
     * 单宝收益金额
     */
    private BigDecimal singlePrice;

    /**
     * 计算单宝收益的宝数
     */
    private Integer powerBankQuantity;



    /**柜机分类id*/
    @ApiModelProperty(value = "柜机分类id")
    private String categoryId;

    /**柜机分类名称*/
    @ApiModelProperty(value = "柜机分类名称")
    private String categoryName;

    @ApiModelProperty(value = "仓口总数")
    private Integer fullNumber;


    @ApiModelProperty(value = "订单出仓口")
    private Integer orderFullNumber;



    @ApiModelProperty(value = "是否权益订单  0 否 1 是 ")
    private Integer isEquity;



    /**柜机分类名称*/
    @ApiModelProperty(value = "归还门店BD")
    private String returnShopBd;
    /**柜机分类名称*/
    @ApiModelProperty(value = "归还设备MAC")
    private String returnMac;
    /**柜机分类名称*/
    @ApiModelProperty(value = "归还 设备仓口总数")
    private Integer returnFullNumber;
    /**柜机分类名称*/
    @ApiModelProperty(value = "归还仓口号")
    private Integer returnNumber;
}
